import React from 'react';
import { useHistory, useLocation, useRouteMatch } from 'react-router-dom';

const B = function B(props) {
  const history = useHistory(),
    location = useLocation(),
    match = useRouteMatch();
  console.log(props);
  console.log('history', history);
  console.log('location', location);
  console.log('match', match);
  return <div className='box'>B组件的内容</div>;
};
export default B;
